package com.hzncc.flowable_diboot.entity.refundmanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 退款登记 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-11-08
* Copyright © MyCorp
*/
@TableName("mdl_refund_register")
@Getter @Setter @Accessors(chain = true)
public class RefundRegister extends BaseModel {
    private static final long serialVersionUID = 1956754544074572966L;
     /**
     * 租户
     */
     @NotNull(message = "租户不能为空")
     @TableField()
     private String tenantId;

     /**
     * 客户ID
     */
     @Length(max=100, message="客户ID长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String customerId;

     /**
     * 退款金额
     */
     @TableField()
     private BigDecimal refundAmount;

     /**
     * 退款日期
     */
     @TableField()
     private LocalDateTime refundTime;

     /**
     * 已退款金额
     */
     @TableField()
     private BigDecimal returnAmount;

     /**
     * 未退款金额
     */
     @TableField()
     private BigDecimal noReturnAmount;

     /**
     * 退款类型
     */
     @Length(max=100, message="退款类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String refundType;

     /**
     * 银行名称
     */
     @Length(max=100, message="银行名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String bankName;

     /**
     * 付款科目
     */
     @Length(max=100, message="付款科目长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String paymentItem;

     /**
     * 承兑票号
     */
     @Length(max=100, message="承兑票号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String billNum;

     /**
     * 传阅
     */
//     @Length(max=100, message="传阅长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String copyRead;

     /**
     * 备注
     */
     @Length(max=100, message="备注长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String remark;

     /**
     * 传阅销售人员
     */
//     @Length(max=100, message="传阅销售人员长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String salerCopyRead;

     /**
     * 是否生成回款凭证
     */
     @TableField()
     private String certed;

     /**
     * 凭证类型
     */
     @Length(max=100, message="凭证类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String certType;

     /**
      * 客户编码
      */
     @TableField()
     private String customerCode;

     /**
      * sap客户id
      */
     @TableField
     private String sapCustomerId;


}